import {
  Controller,
  Get,
  Post,
} from '../decorator/router'

import Pug from 'pug'
import { liveTpl } from '../tpl'

@Controller('/live')
export default class DocumentRouter {
  @Get('/:liveid?')
  async getLive (ctx, next) {
    ctx.body = Pug.render(liveTpl, {
      course_title: '直播'
    })
  }
}